<?php
echo '<script type="text/javascript">';
require APP . WEBROOT_DIR . DS . "js" . DS . "validate" . DS . "user_change_password.js";
echo '</script>';
?>
<div class="users form">
    <?php echo $this->Form->create('User', array('url' => array('controller' => 'users', 'action' => 'change_password', $user['User']['id']))); ?>
    <fieldset>
        <legend><?php __('Editar Contraseña del usuario ' . $user['User']['name']); ?></legend>
        <?php
        echo $this->Form->input('password', array('type' => 'password', 'label' => 'Nueva Contraseña'));
        echo $this->Form->input('password_repeat', array('type' => 'password', 'label' => 'Repetir Contraseña'));
        ?>
    </fieldset>
    <?php echo $this->Form->end(__('Editar', true)); ?>
</div>